package com.example.demo.设计模式.代理模式.静态代理;

/**
 * @description:
 * @projectName:demo
 * @see:设计模式.代理模式.静态代理
 * @author:袁成龙
 * @createTime:2020/10/13 8:04
 * @version:1.0
 */
public class TestDaili implements TestJingTaiInterface{

    private TestJingTaiInterface testJingTai;

    public TestDaili(TestJingTaiInterface testJingTai) {
        this.testJingTai = testJingTai;
    }


    @Override
    public String getString() {

        System.out.println("======之前进行了操作");

        String string = testJingTai.getString();

        System.out.println("=====之后进行了操作");

        return string;
    }
}